package com.tln.sys.menu.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javacommon.base.BaseRestSpringController;

import com.tln.sys.menu.model.Menu;


@Controller
@RequestMapping("/sys/dialog/**")
public class DialogController extends BaseRestSpringController<Menu,java.lang.Long>{

	@Override
	public String index(HttpServletRequest request,HttpServletResponse response,
			@ModelAttribute Menu entity,Model model) {
		logger.info("index............");
		return "/sys/dialog/index";
	}
	
	@RequestMapping(value="/test/{id}")
	public String dialog(@PathVariable("id") Long id){
		logger.info("dialog-*************-- ");
		return "/sys/dialog/dialog_"+id;
	}
}
